<?php
require_once(dirname(__FILE__)."/../../libs/login/login.php"); 
require_once(dirname(__FILE__)."/../../libs/dbclass/dbconnect.php");
require_once(dirname(__FILE__)."/../../libs/string/libstr.php");
require_once(dirname(__FILE__)."/../../admin/libs/power_class.php");
$lg=new login();
$lg->checklogin("admin_member");//检验是否登录
$mc=new libstr();
$pw=new power();

//删除商品类别
if($mc->Ismp($_GET["del"])!="")
{ 
	$pw->cata_del($_GET["del"]);
	$mc->msg("","powercontent_class.php?classid=".$_GET["classid"]);
}
$path="权限组管理";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理系统</title>
<link href="../css/css.css" rel="stylesheet" type="text/css" />
</head>
<body style="background:#fff"> 
<div class="content">
    <div class="right">
<form name="form1" method="post" action="" style="margin:0px">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
        <td width="100%" height="24" class="top_head">&nbsp;</td>
      </tr>
      <tr>
        <td valign="top">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="1%" align="right"  height="45">&nbsp;</td>
                <td width="99%" >
                 <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="55%" style="padding-left:20px;padding-top:10px;"><img src="../images/head.gif" width="13" height="11"><b><?php echo $path;?></b><a href="powercontent_class_creat.php?classid=<?php echo $_GET["classid"]?>" style=" margin-left:20px; text-decoration:underline;">添加新类</a></td>
                    <td width="45%" align="right">&nbsp;</td>
                  </tr>
                </table>
                </td>
              </tr>
            </table>
        </td>
      </tr>
      <tr>
      <td valign="middle" align="center" >
            <table width="92%"   border="1px" bordercolor="#ccc" cellspacing="0px" style="border-collapse:collapse">
              <thead align="center" bgcolor="#EEEEEE">
                <tr>
                <th height="35"  align="left" style="padding-left:1%; ">分类</th>
                <th width="25%" colspan="-4" align="center"><strong>排序</strong></th>
                <th width="25%" colspan="-3" align="center">编辑</th>
            </tr>
          </thead>
          <tbody>
            <?php 
                //获得类别
                $db->depth=0;
                $twhere="";
                $db->getclass("powercontent_class",0,"&nbsp;&nbsp;","powercontent_class_creat.php","powercontent_class_edit.php","",$twhere);
            ?>
         </tbody>
        </table>
        </td>
      </tr>
    </table>
	</div>
	</div>
	</form>
</body>
</html>

